{{- $context := . }}
{{- range $crd := $context.Values.userAuthn.internal.dexClientCRDs }}
---
apiVersion: v1
kind: Secret
metadata:
  name: dex-client-{{ $crd.name }}
  namespace: {{ $crd.namespace }}
  {{- include "helm_lib_module_labels" (list $context (dict "app" "dex-client" "name" "credentials")) | nindent 2 }}
type: Opaque
data:
  clientSecret: {{ $crd.clientSecret | b64enc }}
{{- end }}
